package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author shixc
 * @since 2019-03-14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDH_T")
public class GwdhT extends PO<GwdhT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWDHENT", type = IdType.INPUT)
    private String GWDHENT;

    private String GWDHDOCNO;

    private String GWDH001;

    private String GWDH002;

    private String GWDH004;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDH005;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDH006;

    private String GWDH007;

    private String GWDH008;

    private String GWDHACTI;

    @TableField(fill = FieldFill.INSERT)
    private String GWDHGRUP;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDHDATE;

    @TableField(fill = FieldFill.INSERT)
    private String GWDHORIG;

    @TableField(fill = FieldFill.UPDATE)
    private String GWDHMODU;

    @TableField(fill = FieldFill.INSERT)
    private String GWDHUSER;

    @TableField(fill = FieldFill.INSERT)
    private String GWDHTIME;

    @TableField(fill = FieldFill.INSERT)
    private String GWDHORIU;

    
    @Override
    protected Serializable pkVal() {
        return this.GWDHENT;
    }

}
